package astar
{
	public class AstarNode
	{
        public var x:int;
        public var y:int;
        public var f:Number;
        public var g:Number;
        public var h:Number;
        public var walkable:int;//是否可穿越（通常把障碍物节点设置为false）
        public var parent:AstarNode;
		public function AstarNode(x:int, y:int)
		{
			this.x=x;
			this.y=y;
			var n:int = Math.round(Math.random()*15);
			this.walkable = n > 5 ? 0 : 1;
		}
	}
}